import { FormType, IMyFormProps } from '@/base-ui/base-form/type'
import { ActionDesc } from '@/global/constant'

const shopListSearch: IMyFormProps = {
  // pageKey: PagesKey.UserList,
  desc: ActionDesc.IntegralShopSearch,
  layout: { span: 7 },
  formConfig: {
    name: 'wrap',
    size: 'middle',
    labelAlign: 'right',
    labelCol: { flex: '80px', offset: 2 },
    colon: false
  },
  itemsConfig: [
    {
      type: FormType.Input,
      prop: 'shopName', //必写的，唯一标识,因为name属性不一定全部都会有
      label: '商品名称',
      name: 'shopName',
      input: {
        size: 'small',
        placeholder: '请输入商品名称'
      }
    },
    {
      type: FormType.Select,
      prop: 'shopStatus',
      label: '商品状态',
      name: 'shopStatus',
      select: {
        baseProps: {
          placeholder: '请选择商品状态',
          size: 'small'
        },
        options: [
          { value: 0, content: '下架' },
          { value: 1, content: '上架' }
        ]
      }
    }
  ]
}

export default shopListSearch
